From e6cbaaddae5b7763fa81c1178f0e4e3ff4e7c1e2 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 15 May 2010 08:31:42 +0100 Subject: [PATCH] xend: Fix getStubdomDomid function Signed-off-by: Keir Fraser --- tools/python/xen/xend/XendDomainInfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xend/XendDomainInfo.py b/tools/python/xen/xend/XendDomainInfo.py index dcf26a9886..e0c539d416 100644 --- a/tools/python/xen/xend/XendDomainInfo.py +++ b/tools/python/xen/xend/XendDomainInfo.py @@ -1925,7 +1925,7 @@ class XendDomainInfo: dom_list = xstransact.List('/local/domain') for d in dom_list: target = xstransact.Read('/local/domain/' + d + '/target') - if target is not None and int(target) is self.domid : + if target is not None and int(target) == self.domid: return int(d) return None -- 2.30.2